<?php include_once "usuariosinfo.php" ?>
<?php

// Create page object
if (!isset($cuotascredito_grid)) $cuotascredito_grid = new ccuotascredito_grid();

// Page init
$cuotascredito_grid->Page_Init();

// Page main
$cuotascredito_grid->Page_Main();

// Global Page Rendering event (in userfn*.php)
Page_Rendering();

// Page Rendering event
$cuotascredito_grid->Page_Render();
?>
<?php if ($cuotascredito->Export == "") { ?>
<script type="text/javascript">

// Page object
var cuotascredito_grid = new ew_Page("cuotascredito_grid");
cuotascredito_grid.PageID = "grid"; // Page ID
var EW_PAGE_ID = cuotascredito_grid.PageID; // For backward compatibility

// Form object
var fcuotascreditogrid = new ew_Form("fcuotascreditogrid");
fcuotascreditogrid.FormKeyCountName = '<?php echo $cuotascredito_grid->FormKeyCountName ?>';

// Validate form
fcuotascreditogrid.Validate = function() {
	if (!this.ValidateRequired)
		return true; // Ignore validation
	var $ = jQuery, fobj = this.GetForm(), $fobj = $(fobj);
	this.PostAutoSuggest();
	if ($fobj.find("#a_confirm").val() == "F")
		return true;
	var elm, felm, uelm, addcnt = 0;
	var $k = $fobj.find("#" + this.FormKeyCountName); // Get key_count
	var rowcnt = ($k[0]) ? parseInt($k.val(), 10) : 1;
	var startcnt = (rowcnt == 0) ? 0 : 1; // Check rowcnt == 0 => Inline-Add
	var gridinsert = $fobj.find("#a_list").val() == "gridinsert";
	for (var i = startcnt; i <= rowcnt; i++) {
		var infix = ($k[0]) ? String(i) : "";
		$fobj.data("rowindex", infix);
		var checkrow = (gridinsert) ? !this.EmptyRow(infix) : true;
		if (checkrow) {
			addcnt++;
			elm = this.GetElements("x" + infix + "_creditoId");
			if (elm && !ew_CheckInteger(elm.value))
				return this.OnError(elm, "<?php echo ew_JsEncode2($cuotascredito->creditoId->FldErrMsg()) ?>");
			elm = this.GetElements("x" + infix + "_cuota");
			if (elm && !ew_CheckInteger(elm.value))
				return this.OnError(elm, "<?php echo ew_JsEncode2($cuotascredito->cuota->FldErrMsg()) ?>");
			elm = this.GetElements("x" + infix + "_capital");
			if (elm && !ew_CheckNumber(elm.value))
				return this.OnError(elm, "<?php echo ew_JsEncode2($cuotascredito->capital->FldErrMsg()) ?>");
			elm = this.GetElements("x" + infix + "_intereses");
			if (elm && !ew_CheckNumber(elm.value))
				return this.OnError(elm, "<?php echo ew_JsEncode2($cuotascredito->intereses->FldErrMsg()) ?>");
			elm = this.GetElements("x" + infix + "_tasa");
			if (elm && !ew_CheckNumber(elm.value))
				return this.OnError(elm, "<?php echo ew_JsEncode2($cuotascredito->tasa->FldErrMsg()) ?>");
			elm = this.GetElements("x" + infix + "_estado");
			if (elm && !ew_CheckInteger(elm.value))
				return this.OnError(elm, "<?php echo ew_JsEncode2($cuotascredito->estado->FldErrMsg()) ?>");
			elm = this.GetElements("x" + infix + "_saldo");
			if (elm && !ew_CheckNumber(elm.value))
				return this.OnError(elm, "<?php echo ew_JsEncode2($cuotascredito->saldo->FldErrMsg()) ?>");
			elm = this.GetElements("x" + infix + "_punitorios");
			if (elm && !ew_CheckNumber(elm.value))
				return this.OnError(elm, "<?php echo ew_JsEncode2($cuotascredito->punitorios->FldErrMsg()) ?>");
			elm = this.GetElements("x" + infix + "_vencimiento");
			if (elm && !ew_CheckEuroDate(elm.value))
				return this.OnError(elm, "<?php echo ew_JsEncode2($cuotascredito->vencimiento->FldErrMsg()) ?>");

			// Set up row object
			ew_ElementsToRow(fobj);

			// Fire Form_CustomValidate event
			if (!this.Form_CustomValidate(fobj))
				return false;
		} // End Grid Add checking
	}
	return true;
}

// Check empty row
fcuotascreditogrid.EmptyRow = function(infix) {
	var fobj = this.Form;
	if (ew_ValueChanged(fobj, infix, "creditoId", false)) return false;
	if (ew_ValueChanged(fobj, infix, "cuota", false)) return false;
	if (ew_ValueChanged(fobj, infix, "capital", false)) return false;
	if (ew_ValueChanged(fobj, infix, "intereses", false)) return false;
	if (ew_ValueChanged(fobj, infix, "tasa", false)) return false;
	if (ew_ValueChanged(fobj, infix, "estado", false)) return false;
	if (ew_ValueChanged(fobj, infix, "saldo", false)) return false;
	if (ew_ValueChanged(fobj, infix, "punitorios", false)) return false;
	if (ew_ValueChanged(fobj, infix, "vencimiento", false)) return false;
	return true;
}

// Form_CustomValidate event
fcuotascreditogrid.Form_CustomValidate = 
 function(fobj) { // DO NOT CHANGE THIS LINE!

 	// Your custom validation code here, return false if invalid. 
 	return true;
 }

// Use JavaScript validation or not
<?php if (EW_CLIENT_VALIDATE) { ?>
fcuotascreditogrid.ValidateRequired = true;
<?php } else { ?>
fcuotascreditogrid.ValidateRequired = false; 
<?php } ?>

// Dynamic selection lists
// Form object for search

</script>
<?php } ?>
<?php if ($cuotascredito->getCurrentMasterTable() == "" && $cuotascredito_grid->ExportOptions->Visible()) { ?>
<div class="ewListExportOptions"><?php $cuotascredito_grid->ExportOptions->Render("body") ?></div>
<?php } ?>
<?php
if ($cuotascredito->CurrentAction == "gridadd") {
	if ($cuotascredito->CurrentMode == "copy") {
		$bSelectLimit = EW_SELECT_LIMIT;
		if ($bSelectLimit) {
			$cuotascredito_grid->TotalRecs = $cuotascredito->SelectRecordCount();
			$cuotascredito_grid->Recordset = $cuotascredito_grid->LoadRecordset($cuotascredito_grid->StartRec-1, $cuotascredito_grid->DisplayRecs);
		} else {
			if ($cuotascredito_grid->Recordset = $cuotascredito_grid->LoadRecordset())
				$cuotascredito_grid->TotalRecs = $cuotascredito_grid->Recordset->RecordCount();
		}
		$cuotascredito_grid->StartRec = 1;
		$cuotascredito_grid->DisplayRecs = $cuotascredito_grid->TotalRecs;
	} else {
		$cuotascredito->CurrentFilter = "0=1";
		$cuotascredito_grid->StartRec = 1;
		$cuotascredito_grid->DisplayRecs = $cuotascredito->GridAddRowCount;
	}
	$cuotascredito_grid->TotalRecs = $cuotascredito_grid->DisplayRecs;
	$cuotascredito_grid->StopRec = $cuotascredito_grid->DisplayRecs;
} else {
	$bSelectLimit = EW_SELECT_LIMIT;
	if ($bSelectLimit) {
		$cuotascredito_grid->TotalRecs = $cuotascredito->SelectRecordCount();
	} else {
		if ($cuotascredito_grid->Recordset = $cuotascredito_grid->LoadRecordset())
			$cuotascredito_grid->TotalRecs = $cuotascredito_grid->Recordset->RecordCount();
	}
	$cuotascredito_grid->StartRec = 1;
	$cuotascredito_grid->DisplayRecs = $cuotascredito_grid->TotalRecs; // Display all records
	if ($bSelectLimit)
		$cuotascredito_grid->Recordset = $cuotascredito_grid->LoadRecordset($cuotascredito_grid->StartRec-1, $cuotascredito_grid->DisplayRecs);
}
$cuotascredito_grid->RenderOtherOptions();
?>
<?php $cuotascredito_grid->ShowPageHeader(); ?>
<?php
$cuotascredito_grid->ShowMessage();
?>
<table class="ewGrid"><tr><td class="ewGridContent">
<div id="fcuotascreditogrid" class="ewForm form-inline">
<div id="gmp_cuotascredito" class="ewGridMiddlePanel">
<table id="tbl_cuotascreditogrid" class="ewTable ewTableSeparate">
<?php echo $cuotascredito->TableCustomInnerHtml ?>
<thead><!-- Table header -->
	<tr class="ewTableHeader">
<?php

// Render list options
$cuotascredito_grid->RenderListOptions();

// Render list options (header, left)
$cuotascredito_grid->ListOptions->Render("header", "left");
?>
<?php if ($cuotascredito->Id->Visible) { // Id ?>
	<?php if ($cuotascredito->SortUrl($cuotascredito->Id) == "") { ?>
		<td><div id="elh_cuotascredito_Id" class="cuotascredito_Id"><div class="ewTableHeaderCaption"><?php echo $cuotascredito->Id->FldCaption() ?></div></div></td>
	<?php } else { ?>
		<td><div><div id="elh_cuotascredito_Id" class="cuotascredito_Id">
			<div class="ewTableHeaderBtn"><span class="ewTableHeaderCaption"><?php echo $cuotascredito->Id->FldCaption() ?></span><span class="ewTableHeaderSort"><?php if ($cuotascredito->Id->getSort() == "ASC") { ?><span class="caret ewSortUp"></span><?php } elseif ($cuotascredito->Id->getSort() == "DESC") { ?><span class="caret"></span><?php } ?></span></div>
        </div></div></td>
	<?php } ?>
<?php } ?>		
<?php if ($cuotascredito->creditoId->Visible) { // creditoId ?>
	<?php if ($cuotascredito->SortUrl($cuotascredito->creditoId) == "") { ?>
		<td><div id="elh_cuotascredito_creditoId" class="cuotascredito_creditoId"><div class="ewTableHeaderCaption"><?php echo $cuotascredito->creditoId->FldCaption() ?></div></div></td>
	<?php } else { ?>
		<td><div><div id="elh_cuotascredito_creditoId" class="cuotascredito_creditoId">
			<div class="ewTableHeaderBtn"><span class="ewTableHeaderCaption"><?php echo $cuotascredito->creditoId->FldCaption() ?></span><span class="ewTableHeaderSort"><?php if ($cuotascredito->creditoId->getSort() == "ASC") { ?><span class="caret ewSortUp"></span><?php } elseif ($cuotascredito->creditoId->getSort() == "DESC") { ?><span class="caret"></span><?php } ?></span></div>
        </div></div></td>
	<?php } ?>
<?php } ?>		
<?php if ($cuotascredito->cuota->Visible) { // cuota ?>
	<?php if ($cuotascredito->SortUrl($cuotascredito->cuota) == "") { ?>
		<td><div id="elh_cuotascredito_cuota" class="cuotascredito_cuota"><div class="ewTableHeaderCaption"><?php echo $cuotascredito->cuota->FldCaption() ?></div></div></td>
	<?php } else { ?>
		<td><div><div id="elh_cuotascredito_cuota" class="cuotascredito_cuota">
			<div class="ewTableHeaderBtn"><span class="ewTableHeaderCaption"><?php echo $cuotascredito->cuota->FldCaption() ?></span><span class="ewTableHeaderSort"><?php if ($cuotascredito->cuota->getSort() == "ASC") { ?><span class="caret ewSortUp"></span><?php } elseif ($cuotascredito->cuota->getSort() == "DESC") { ?><span class="caret"></span><?php } ?></span></div>
        </div></div></td>
	<?php } ?>
<?php } ?>		
<?php if ($cuotascredito->capital->Visible) { // capital ?>
	<?php if ($cuotascredito->SortUrl($cuotascredito->capital) == "") { ?>
		<td><div id="elh_cuotascredito_capital" class="cuotascredito_capital"><div class="ewTableHeaderCaption"><?php echo $cuotascredito->capital->FldCaption() ?></div></div></td>
	<?php } else { ?>
		<td><div><div id="elh_cuotascredito_capital" class="cuotascredito_capital">
			<div class="ewTableHeaderBtn"><span class="ewTableHeaderCaption"><?php echo $cuotascredito->capital->FldCaption() ?></span><span class="ewTableHeaderSort"><?php if ($cuotascredito->capital->getSort() == "ASC") { ?><span class="caret ewSortUp"></span><?php } elseif ($cuotascredito->capital->getSort() == "DESC") { ?><span class="caret"></span><?php } ?></span></div>
        </div></div></td>
	<?php } ?>
<?php } ?>		
<?php if ($cuotascredito->intereses->Visible) { // intereses ?>
	<?php if ($cuotascredito->SortUrl($cuotascredito->intereses) == "") { ?>
		<td><div id="elh_cuotascredito_intereses" class="cuotascredito_intereses"><div class="ewTableHeaderCaption"><?php echo $cuotascredito->intereses->FldCaption() ?></div></div></td>
	<?php } else { ?>
		<td><div><div id="elh_cuotascredito_intereses" class="cuotascredito_intereses">
			<div class="ewTableHeaderBtn"><span class="ewTableHeaderCaption"><?php echo $cuotascredito->intereses->FldCaption() ?></span><span class="ewTableHeaderSort"><?php if ($cuotascredito->intereses->getSort() == "ASC") { ?><span class="caret ewSortUp"></span><?php } elseif ($cuotascredito->intereses->getSort() == "DESC") { ?><span class="caret"></span><?php } ?></span></div>
        </div></div></td>
	<?php } ?>
<?php } ?>		
<?php if ($cuotascredito->tasa->Visible) { // tasa ?>
	<?php if ($cuotascredito->SortUrl($cuotascredito->tasa) == "") { ?>
		<td><div id="elh_cuotascredito_tasa" class="cuotascredito_tasa"><div class="ewTableHeaderCaption"><?php echo $cuotascredito->tasa->FldCaption() ?></div></div></td>
	<?php } else { ?>
		<td><div><div id="elh_cuotascredito_tasa" class="cuotascredito_tasa">
			<div class="ewTableHeaderBtn"><span class="ewTableHeaderCaption"><?php echo $cuotascredito->tasa->FldCaption() ?></span><span class="ewTableHeaderSort"><?php if ($cuotascredito->tasa->getSort() == "ASC") { ?><span class="caret ewSortUp"></span><?php } elseif ($cuotascredito->tasa->getSort() == "DESC") { ?><span class="caret"></span><?php } ?></span></div>
        </div></div></td>
	<?php } ?>
<?php } ?>		
<?php if ($cuotascredito->estado->Visible) { // estado ?>
	<?php if ($cuotascredito->SortUrl($cuotascredito->estado) == "") { ?>
		<td><div id="elh_cuotascredito_estado" class="cuotascredito_estado"><div class="ewTableHeaderCaption"><?php echo $cuotascredito->estado->FldCaption() ?></div></div></td>
	<?php } else { ?>
		<td><div><div id="elh_cuotascredito_estado" class="cuotascredito_estado">
			<div class="ewTableHeaderBtn"><span class="ewTableHeaderCaption"><?php echo $cuotascredito->estado->FldCaption() ?></span><span class="ewTableHeaderSort"><?php if ($cuotascredito->estado->getSort() == "ASC") { ?><span class="caret ewSortUp"></span><?php } elseif ($cuotascredito->estado->getSort() == "DESC") { ?><span class="caret"></span><?php } ?></span></div>
        </div></div></td>
	<?php } ?>
<?php } ?>		
<?php if ($cuotascredito->saldo->Visible) { // saldo ?>
	<?php if ($cuotascredito->SortUrl($cuotascredito->saldo) == "") { ?>
		<td><div id="elh_cuotascredito_saldo" class="cuotascredito_saldo"><div class="ewTableHeaderCaption"><?php echo $cuotascredito->saldo->FldCaption() ?></div></div></td>
	<?php } else { ?>
		<td><div><div id="elh_cuotascredito_saldo" class="cuotascredito_saldo">
			<div class="ewTableHeaderBtn"><span class="ewTableHeaderCaption"><?php echo $cuotascredito->saldo->FldCaption() ?></span><span class="ewTableHeaderSort"><?php if ($cuotascredito->saldo->getSort() == "ASC") { ?><span class="caret ewSortUp"></span><?php } elseif ($cuotascredito->saldo->getSort() == "DESC") { ?><span class="caret"></span><?php } ?></span></div>
        </div></div></td>
	<?php } ?>
<?php } ?>		
<?php if ($cuotascredito->punitorios->Visible) { // punitorios ?>
	<?php if ($cuotascredito->SortUrl($cuotascredito->punitorios) == "") { ?>
		<td><div id="elh_cuotascredito_punitorios" class="cuotascredito_punitorios"><div class="ewTableHeaderCaption"><?php echo $cuotascredito->punitorios->FldCaption() ?></div></div></td>
	<?php } else { ?>
		<td><div><div id="elh_cuotascredito_punitorios" class="cuotascredito_punitorios">
			<div class="ewTableHeaderBtn"><span class="ewTableHeaderCaption"><?php echo $cuotascredito->punitorios->FldCaption() ?></span><span class="ewTableHeaderSort"><?php if ($cuotascredito->punitorios->getSort() == "ASC") { ?><span class="caret ewSortUp"></span><?php } elseif ($cuotascredito->punitorios->getSort() == "DESC") { ?><span class="caret"></span><?php } ?></span></div>
        </div></div></td>
	<?php } ?>
<?php } ?>		
<?php if ($cuotascredito->vencimiento->Visible) { // vencimiento ?>
	<?php if ($cuotascredito->SortUrl($cuotascredito->vencimiento) == "") { ?>
		<td><div id="elh_cuotascredito_vencimiento" class="cuotascredito_vencimiento"><div class="ewTableHeaderCaption"><?php echo $cuotascredito->vencimiento->FldCaption() ?></div></div></td>
	<?php } else { ?>
		<td><div><div id="elh_cuotascredito_vencimiento" class="cuotascredito_vencimiento">
			<div class="ewTableHeaderBtn"><span class="ewTableHeaderCaption"><?php echo $cuotascredito->vencimiento->FldCaption() ?></span><span class="ewTableHeaderSort"><?php if ($cuotascredito->vencimiento->getSort() == "ASC") { ?><span class="caret ewSortUp"></span><?php } elseif ($cuotascredito->vencimiento->getSort() == "DESC") { ?><span class="caret"></span><?php } ?></span></div>
        </div></div></td>
	<?php } ?>
<?php } ?>		
<?php

// Render list options (header, right)
$cuotascredito_grid->ListOptions->Render("header", "right");
?>
	</tr>
</thead>
<tbody>
<?php
$cuotascredito_grid->StartRec = 1;
$cuotascredito_grid->StopRec = $cuotascredito_grid->TotalRecs; // Show all records

// Restore number of post back records
if ($objForm) {
	$objForm->Index = -1;
	if ($objForm->HasValue($cuotascredito_grid->FormKeyCountName) && ($cuotascredito->CurrentAction == "gridadd" || $cuotascredito->CurrentAction == "gridedit" || $cuotascredito->CurrentAction == "F")) {
		$cuotascredito_grid->KeyCount = $objForm->GetValue($cuotascredito_grid->FormKeyCountName);
		$cuotascredito_grid->StopRec = $cuotascredito_grid->StartRec + $cuotascredito_grid->KeyCount - 1;
	}
}
$cuotascredito_grid->RecCnt = $cuotascredito_grid->StartRec - 1;
if ($cuotascredito_grid->Recordset && !$cuotascredito_grid->Recordset->EOF) {
	$cuotascredito_grid->Recordset->MoveFirst();
	if (!$bSelectLimit && $cuotascredito_grid->StartRec > 1)
		$cuotascredito_grid->Recordset->Move($cuotascredito_grid->StartRec - 1);
} elseif (!$cuotascredito->AllowAddDeleteRow && $cuotascredito_grid->StopRec == 0) {
	$cuotascredito_grid->StopRec = $cuotascredito->GridAddRowCount;
}

// Initialize aggregate
$cuotascredito->RowType = EW_ROWTYPE_AGGREGATEINIT;
$cuotascredito->ResetAttrs();
$cuotascredito_grid->RenderRow();
if ($cuotascredito->CurrentAction == "gridadd")
	$cuotascredito_grid->RowIndex = 0;
if ($cuotascredito->CurrentAction == "gridedit")
	$cuotascredito_grid->RowIndex = 0;
while ($cuotascredito_grid->RecCnt < $cuotascredito_grid->StopRec) {
	$cuotascredito_grid->RecCnt++;
	if (intval($cuotascredito_grid->RecCnt) >= intval($cuotascredito_grid->StartRec)) {
		$cuotascredito_grid->RowCnt++;
		if ($cuotascredito->CurrentAction == "gridadd" || $cuotascredito->CurrentAction == "gridedit" || $cuotascredito->CurrentAction == "F") {
			$cuotascredito_grid->RowIndex++;
			$objForm->Index = $cuotascredito_grid->RowIndex;
			if ($objForm->HasValue($cuotascredito_grid->FormActionName))
				$cuotascredito_grid->RowAction = strval($objForm->GetValue($cuotascredito_grid->FormActionName));
			elseif ($cuotascredito->CurrentAction == "gridadd")
				$cuotascredito_grid->RowAction = "insert";
			else
				$cuotascredito_grid->RowAction = "";
		}

		// Set up key count
		$cuotascredito_grid->KeyCount = $cuotascredito_grid->RowIndex;

		// Init row class and style
		$cuotascredito->ResetAttrs();
		$cuotascredito->CssClass = "";
		if ($cuotascredito->CurrentAction == "gridadd") {
			if ($cuotascredito->CurrentMode == "copy") {
				$cuotascredito_grid->LoadRowValues($cuotascredito_grid->Recordset); // Load row values
				$cuotascredito_grid->SetRecordKey($cuotascredito_grid->RowOldKey, $cuotascredito_grid->Recordset); // Set old record key
			} else {
				$cuotascredito_grid->LoadDefaultValues(); // Load default values
				$cuotascredito_grid->RowOldKey = ""; // Clear old key value
			}
		} else {
			$cuotascredito_grid->LoadRowValues($cuotascredito_grid->Recordset); // Load row values
		}
		$cuotascredito->RowType = EW_ROWTYPE_VIEW; // Render view
		if ($cuotascredito->CurrentAction == "gridadd") // Grid add
			$cuotascredito->RowType = EW_ROWTYPE_ADD; // Render add
		if ($cuotascredito->CurrentAction == "gridadd" && $cuotascredito->EventCancelled && !$objForm->HasValue("k_blankrow")) // Insert failed
			$cuotascredito_grid->RestoreCurrentRowFormValues($cuotascredito_grid->RowIndex); // Restore form values
		if ($cuotascredito->CurrentAction == "gridedit") { // Grid edit
			if ($cuotascredito->EventCancelled) {
				$cuotascredito_grid->RestoreCurrentRowFormValues($cuotascredito_grid->RowIndex); // Restore form values
			}
			if ($cuotascredito_grid->RowAction == "insert")
				$cuotascredito->RowType = EW_ROWTYPE_ADD; // Render add
			else
				$cuotascredito->RowType = EW_ROWTYPE_EDIT; // Render edit
		}
		if ($cuotascredito->CurrentAction == "gridedit" && ($cuotascredito->RowType == EW_ROWTYPE_EDIT || $cuotascredito->RowType == EW_ROWTYPE_ADD) && $cuotascredito->EventCancelled) // Update failed
			$cuotascredito_grid->RestoreCurrentRowFormValues($cuotascredito_grid->RowIndex); // Restore form values
		if ($cuotascredito->RowType == EW_ROWTYPE_EDIT) // Edit row
			$cuotascredito_grid->EditRowCnt++;
		if ($cuotascredito->CurrentAction == "F") // Confirm row
			$cuotascredito_grid->RestoreCurrentRowFormValues($cuotascredito_grid->RowIndex); // Restore form values

		// Set up row id / data-rowindex
		$cuotascredito->RowAttrs = array_merge($cuotascredito->RowAttrs, array('data-rowindex'=>$cuotascredito_grid->RowCnt, 'id'=>'r' . $cuotascredito_grid->RowCnt . '_cuotascredito', 'data-rowtype'=>$cuotascredito->RowType));

		// Render row
		$cuotascredito_grid->RenderRow();

		// Render list options
		$cuotascredito_grid->RenderListOptions();

		// Skip delete row / empty row for confirm page
		if ($cuotascredito_grid->RowAction <> "delete" && $cuotascredito_grid->RowAction <> "insertdelete" && !($cuotascredito_grid->RowAction == "insert" && $cuotascredito->CurrentAction == "F" && $cuotascredito_grid->EmptyRow())) {
?>
	<tr<?php echo $cuotascredito->RowAttributes() ?>>
<?php

// Render list options (body, left)
$cuotascredito_grid->ListOptions->Render("body", "left", $cuotascredito_grid->RowCnt);
?>
	<?php if ($cuotascredito->Id->Visible) { // Id ?>
		<td<?php echo $cuotascredito->Id->CellAttributes() ?>>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_ADD) { // Add record ?>
<input type="hidden" data-field="x_Id" name="o<?php echo $cuotascredito_grid->RowIndex ?>_Id" id="o<?php echo $cuotascredito_grid->RowIndex ?>_Id" value="<?php echo ew_HtmlEncode($cuotascredito->Id->OldValue) ?>">
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_Id" class="control-group cuotascredito_Id">
<span<?php echo $cuotascredito->Id->ViewAttributes() ?>>
<?php echo $cuotascredito->Id->EditValue ?></span>
</span>
<input type="hidden" data-field="x_Id" name="x<?php echo $cuotascredito_grid->RowIndex ?>_Id" id="x<?php echo $cuotascredito_grid->RowIndex ?>_Id" value="<?php echo ew_HtmlEncode($cuotascredito->Id->CurrentValue) ?>">
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_VIEW) { // View record ?>
<span<?php echo $cuotascredito->Id->ViewAttributes() ?>>
<?php echo $cuotascredito->Id->ListViewValue() ?></span>
<input type="hidden" data-field="x_Id" name="x<?php echo $cuotascredito_grid->RowIndex ?>_Id" id="x<?php echo $cuotascredito_grid->RowIndex ?>_Id" value="<?php echo ew_HtmlEncode($cuotascredito->Id->FormValue) ?>">
<input type="hidden" data-field="x_Id" name="o<?php echo $cuotascredito_grid->RowIndex ?>_Id" id="o<?php echo $cuotascredito_grid->RowIndex ?>_Id" value="<?php echo ew_HtmlEncode($cuotascredito->Id->OldValue) ?>">
<?php } ?>
<a id="<?php echo $cuotascredito_grid->PageObjName . "_row_" . $cuotascredito_grid->RowCnt ?>"></a></td>
	<?php } ?>
	<?php if ($cuotascredito->creditoId->Visible) { // creditoId ?>
		<td<?php echo $cuotascredito->creditoId->CellAttributes() ?>>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_ADD) { // Add record ?>
<?php if ($cuotascredito->creditoId->getSessionValue() <> "") { ?>
<span<?php echo $cuotascredito->creditoId->ViewAttributes() ?>>
<?php echo $cuotascredito->creditoId->ListViewValue() ?></span>
<input type="hidden" id="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" name="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" value="<?php echo ew_HtmlEncode($cuotascredito->creditoId->CurrentValue) ?>">
<?php } else { ?>
<input type="text" data-field="x_creditoId" name="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" id="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->creditoId->PlaceHolder) ?>" value="<?php echo $cuotascredito->creditoId->EditValue ?>"<?php echo $cuotascredito->creditoId->EditAttributes() ?>>
<?php } ?>
<input type="hidden" data-field="x_creditoId" name="o<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" id="o<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" value="<?php echo ew_HtmlEncode($cuotascredito->creditoId->OldValue) ?>">
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_EDIT) { // Edit record ?>
<?php if ($cuotascredito->creditoId->getSessionValue() <> "") { ?>
<span<?php echo $cuotascredito->creditoId->ViewAttributes() ?>>
<?php echo $cuotascredito->creditoId->ListViewValue() ?></span>
<input type="hidden" id="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" name="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" value="<?php echo ew_HtmlEncode($cuotascredito->creditoId->CurrentValue) ?>">
<?php } else { ?>
<input type="text" data-field="x_creditoId" name="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" id="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->creditoId->PlaceHolder) ?>" value="<?php echo $cuotascredito->creditoId->EditValue ?>"<?php echo $cuotascredito->creditoId->EditAttributes() ?>>
<?php } ?>
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_VIEW) { // View record ?>
<span<?php echo $cuotascredito->creditoId->ViewAttributes() ?>>
<?php echo $cuotascredito->creditoId->ListViewValue() ?></span>
<input type="hidden" data-field="x_creditoId" name="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" id="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" value="<?php echo ew_HtmlEncode($cuotascredito->creditoId->FormValue) ?>">
<input type="hidden" data-field="x_creditoId" name="o<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" id="o<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" value="<?php echo ew_HtmlEncode($cuotascredito->creditoId->OldValue) ?>">
<?php } ?>
</td>
	<?php } ?>
	<?php if ($cuotascredito->cuota->Visible) { // cuota ?>
		<td<?php echo $cuotascredito->cuota->CellAttributes() ?>>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_cuota" class="control-group cuotascredito_cuota">
<input type="text" data-field="x_cuota" name="x<?php echo $cuotascredito_grid->RowIndex ?>_cuota" id="x<?php echo $cuotascredito_grid->RowIndex ?>_cuota" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->cuota->PlaceHolder) ?>" value="<?php echo $cuotascredito->cuota->EditValue ?>"<?php echo $cuotascredito->cuota->EditAttributes() ?>>
</span>
<input type="hidden" data-field="x_cuota" name="o<?php echo $cuotascredito_grid->RowIndex ?>_cuota" id="o<?php echo $cuotascredito_grid->RowIndex ?>_cuota" value="<?php echo ew_HtmlEncode($cuotascredito->cuota->OldValue) ?>">
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_cuota" class="control-group cuotascredito_cuota">
<input type="text" data-field="x_cuota" name="x<?php echo $cuotascredito_grid->RowIndex ?>_cuota" id="x<?php echo $cuotascredito_grid->RowIndex ?>_cuota" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->cuota->PlaceHolder) ?>" value="<?php echo $cuotascredito->cuota->EditValue ?>"<?php echo $cuotascredito->cuota->EditAttributes() ?>>
</span>
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_VIEW) { // View record ?>
<span<?php echo $cuotascredito->cuota->ViewAttributes() ?>>
<?php echo $cuotascredito->cuota->ListViewValue() ?></span>
<input type="hidden" data-field="x_cuota" name="x<?php echo $cuotascredito_grid->RowIndex ?>_cuota" id="x<?php echo $cuotascredito_grid->RowIndex ?>_cuota" value="<?php echo ew_HtmlEncode($cuotascredito->cuota->FormValue) ?>">
<input type="hidden" data-field="x_cuota" name="o<?php echo $cuotascredito_grid->RowIndex ?>_cuota" id="o<?php echo $cuotascredito_grid->RowIndex ?>_cuota" value="<?php echo ew_HtmlEncode($cuotascredito->cuota->OldValue) ?>">
<?php } ?>
</td>
	<?php } ?>
	<?php if ($cuotascredito->capital->Visible) { // capital ?>
		<td<?php echo $cuotascredito->capital->CellAttributes() ?>>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_capital" class="control-group cuotascredito_capital">
<input type="text" data-field="x_capital" name="x<?php echo $cuotascredito_grid->RowIndex ?>_capital" id="x<?php echo $cuotascredito_grid->RowIndex ?>_capital" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->capital->PlaceHolder) ?>" value="<?php echo $cuotascredito->capital->EditValue ?>"<?php echo $cuotascredito->capital->EditAttributes() ?>>
</span>
<input type="hidden" data-field="x_capital" name="o<?php echo $cuotascredito_grid->RowIndex ?>_capital" id="o<?php echo $cuotascredito_grid->RowIndex ?>_capital" value="<?php echo ew_HtmlEncode($cuotascredito->capital->OldValue) ?>">
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_capital" class="control-group cuotascredito_capital">
<input type="text" data-field="x_capital" name="x<?php echo $cuotascredito_grid->RowIndex ?>_capital" id="x<?php echo $cuotascredito_grid->RowIndex ?>_capital" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->capital->PlaceHolder) ?>" value="<?php echo $cuotascredito->capital->EditValue ?>"<?php echo $cuotascredito->capital->EditAttributes() ?>>
</span>
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_VIEW) { // View record ?>
<span<?php echo $cuotascredito->capital->ViewAttributes() ?>>
<?php echo $cuotascredito->capital->ListViewValue() ?></span>
<input type="hidden" data-field="x_capital" name="x<?php echo $cuotascredito_grid->RowIndex ?>_capital" id="x<?php echo $cuotascredito_grid->RowIndex ?>_capital" value="<?php echo ew_HtmlEncode($cuotascredito->capital->FormValue) ?>">
<input type="hidden" data-field="x_capital" name="o<?php echo $cuotascredito_grid->RowIndex ?>_capital" id="o<?php echo $cuotascredito_grid->RowIndex ?>_capital" value="<?php echo ew_HtmlEncode($cuotascredito->capital->OldValue) ?>">
<?php } ?>
</td>
	<?php } ?>
	<?php if ($cuotascredito->intereses->Visible) { // intereses ?>
		<td<?php echo $cuotascredito->intereses->CellAttributes() ?>>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_intereses" class="control-group cuotascredito_intereses">
<input type="text" data-field="x_intereses" name="x<?php echo $cuotascredito_grid->RowIndex ?>_intereses" id="x<?php echo $cuotascredito_grid->RowIndex ?>_intereses" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->intereses->PlaceHolder) ?>" value="<?php echo $cuotascredito->intereses->EditValue ?>"<?php echo $cuotascredito->intereses->EditAttributes() ?>>
</span>
<input type="hidden" data-field="x_intereses" name="o<?php echo $cuotascredito_grid->RowIndex ?>_intereses" id="o<?php echo $cuotascredito_grid->RowIndex ?>_intereses" value="<?php echo ew_HtmlEncode($cuotascredito->intereses->OldValue) ?>">
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_intereses" class="control-group cuotascredito_intereses">
<input type="text" data-field="x_intereses" name="x<?php echo $cuotascredito_grid->RowIndex ?>_intereses" id="x<?php echo $cuotascredito_grid->RowIndex ?>_intereses" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->intereses->PlaceHolder) ?>" value="<?php echo $cuotascredito->intereses->EditValue ?>"<?php echo $cuotascredito->intereses->EditAttributes() ?>>
</span>
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_VIEW) { // View record ?>
<span<?php echo $cuotascredito->intereses->ViewAttributes() ?>>
<?php echo $cuotascredito->intereses->ListViewValue() ?></span>
<input type="hidden" data-field="x_intereses" name="x<?php echo $cuotascredito_grid->RowIndex ?>_intereses" id="x<?php echo $cuotascredito_grid->RowIndex ?>_intereses" value="<?php echo ew_HtmlEncode($cuotascredito->intereses->FormValue) ?>">
<input type="hidden" data-field="x_intereses" name="o<?php echo $cuotascredito_grid->RowIndex ?>_intereses" id="o<?php echo $cuotascredito_grid->RowIndex ?>_intereses" value="<?php echo ew_HtmlEncode($cuotascredito->intereses->OldValue) ?>">
<?php } ?>
</td>
	<?php } ?>
	<?php if ($cuotascredito->tasa->Visible) { // tasa ?>
		<td<?php echo $cuotascredito->tasa->CellAttributes() ?>>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_tasa" class="control-group cuotascredito_tasa">
<input type="text" data-field="x_tasa" name="x<?php echo $cuotascredito_grid->RowIndex ?>_tasa" id="x<?php echo $cuotascredito_grid->RowIndex ?>_tasa" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->tasa->PlaceHolder) ?>" value="<?php echo $cuotascredito->tasa->EditValue ?>"<?php echo $cuotascredito->tasa->EditAttributes() ?>>
</span>
<input type="hidden" data-field="x_tasa" name="o<?php echo $cuotascredito_grid->RowIndex ?>_tasa" id="o<?php echo $cuotascredito_grid->RowIndex ?>_tasa" value="<?php echo ew_HtmlEncode($cuotascredito->tasa->OldValue) ?>">
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_tasa" class="control-group cuotascredito_tasa">
<input type="text" data-field="x_tasa" name="x<?php echo $cuotascredito_grid->RowIndex ?>_tasa" id="x<?php echo $cuotascredito_grid->RowIndex ?>_tasa" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->tasa->PlaceHolder) ?>" value="<?php echo $cuotascredito->tasa->EditValue ?>"<?php echo $cuotascredito->tasa->EditAttributes() ?>>
</span>
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_VIEW) { // View record ?>
<span<?php echo $cuotascredito->tasa->ViewAttributes() ?>>
<?php echo $cuotascredito->tasa->ListViewValue() ?></span>
<input type="hidden" data-field="x_tasa" name="x<?php echo $cuotascredito_grid->RowIndex ?>_tasa" id="x<?php echo $cuotascredito_grid->RowIndex ?>_tasa" value="<?php echo ew_HtmlEncode($cuotascredito->tasa->FormValue) ?>">
<input type="hidden" data-field="x_tasa" name="o<?php echo $cuotascredito_grid->RowIndex ?>_tasa" id="o<?php echo $cuotascredito_grid->RowIndex ?>_tasa" value="<?php echo ew_HtmlEncode($cuotascredito->tasa->OldValue) ?>">
<?php } ?>
</td>
	<?php } ?>
	<?php if ($cuotascredito->estado->Visible) { // estado ?>
		<td<?php echo $cuotascredito->estado->CellAttributes() ?>>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_estado" class="control-group cuotascredito_estado">
<input type="text" data-field="x_estado" name="x<?php echo $cuotascredito_grid->RowIndex ?>_estado" id="x<?php echo $cuotascredito_grid->RowIndex ?>_estado" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->estado->PlaceHolder) ?>" value="<?php echo $cuotascredito->estado->EditValue ?>"<?php echo $cuotascredito->estado->EditAttributes() ?>>
</span>
<input type="hidden" data-field="x_estado" name="o<?php echo $cuotascredito_grid->RowIndex ?>_estado" id="o<?php echo $cuotascredito_grid->RowIndex ?>_estado" value="<?php echo ew_HtmlEncode($cuotascredito->estado->OldValue) ?>">
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_estado" class="control-group cuotascredito_estado">
<input type="text" data-field="x_estado" name="x<?php echo $cuotascredito_grid->RowIndex ?>_estado" id="x<?php echo $cuotascredito_grid->RowIndex ?>_estado" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->estado->PlaceHolder) ?>" value="<?php echo $cuotascredito->estado->EditValue ?>"<?php echo $cuotascredito->estado->EditAttributes() ?>>
</span>
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_VIEW) { // View record ?>
<span<?php echo $cuotascredito->estado->ViewAttributes() ?>>
<?php echo $cuotascredito->estado->ListViewValue() ?></span>
<input type="hidden" data-field="x_estado" name="x<?php echo $cuotascredito_grid->RowIndex ?>_estado" id="x<?php echo $cuotascredito_grid->RowIndex ?>_estado" value="<?php echo ew_HtmlEncode($cuotascredito->estado->FormValue) ?>">
<input type="hidden" data-field="x_estado" name="o<?php echo $cuotascredito_grid->RowIndex ?>_estado" id="o<?php echo $cuotascredito_grid->RowIndex ?>_estado" value="<?php echo ew_HtmlEncode($cuotascredito->estado->OldValue) ?>">
<?php } ?>
</td>
	<?php } ?>
	<?php if ($cuotascredito->saldo->Visible) { // saldo ?>
		<td<?php echo $cuotascredito->saldo->CellAttributes() ?>>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_saldo" class="control-group cuotascredito_saldo">
<input type="text" data-field="x_saldo" name="x<?php echo $cuotascredito_grid->RowIndex ?>_saldo" id="x<?php echo $cuotascredito_grid->RowIndex ?>_saldo" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->saldo->PlaceHolder) ?>" value="<?php echo $cuotascredito->saldo->EditValue ?>"<?php echo $cuotascredito->saldo->EditAttributes() ?>>
</span>
<input type="hidden" data-field="x_saldo" name="o<?php echo $cuotascredito_grid->RowIndex ?>_saldo" id="o<?php echo $cuotascredito_grid->RowIndex ?>_saldo" value="<?php echo ew_HtmlEncode($cuotascredito->saldo->OldValue) ?>">
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_saldo" class="control-group cuotascredito_saldo">
<input type="text" data-field="x_saldo" name="x<?php echo $cuotascredito_grid->RowIndex ?>_saldo" id="x<?php echo $cuotascredito_grid->RowIndex ?>_saldo" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->saldo->PlaceHolder) ?>" value="<?php echo $cuotascredito->saldo->EditValue ?>"<?php echo $cuotascredito->saldo->EditAttributes() ?>>
</span>
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_VIEW) { // View record ?>
<span<?php echo $cuotascredito->saldo->ViewAttributes() ?>>
<?php echo $cuotascredito->saldo->ListViewValue() ?></span>
<input type="hidden" data-field="x_saldo" name="x<?php echo $cuotascredito_grid->RowIndex ?>_saldo" id="x<?php echo $cuotascredito_grid->RowIndex ?>_saldo" value="<?php echo ew_HtmlEncode($cuotascredito->saldo->FormValue) ?>">
<input type="hidden" data-field="x_saldo" name="o<?php echo $cuotascredito_grid->RowIndex ?>_saldo" id="o<?php echo $cuotascredito_grid->RowIndex ?>_saldo" value="<?php echo ew_HtmlEncode($cuotascredito->saldo->OldValue) ?>">
<?php } ?>
</td>
	<?php } ?>
	<?php if ($cuotascredito->punitorios->Visible) { // punitorios ?>
		<td<?php echo $cuotascredito->punitorios->CellAttributes() ?>>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_punitorios" class="control-group cuotascredito_punitorios">
<input type="text" data-field="x_punitorios" name="x<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" id="x<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->punitorios->PlaceHolder) ?>" value="<?php echo $cuotascredito->punitorios->EditValue ?>"<?php echo $cuotascredito->punitorios->EditAttributes() ?>>
</span>
<input type="hidden" data-field="x_punitorios" name="o<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" id="o<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" value="<?php echo ew_HtmlEncode($cuotascredito->punitorios->OldValue) ?>">
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_punitorios" class="control-group cuotascredito_punitorios">
<input type="text" data-field="x_punitorios" name="x<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" id="x<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->punitorios->PlaceHolder) ?>" value="<?php echo $cuotascredito->punitorios->EditValue ?>"<?php echo $cuotascredito->punitorios->EditAttributes() ?>>
</span>
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_VIEW) { // View record ?>
<span<?php echo $cuotascredito->punitorios->ViewAttributes() ?>>
<?php echo $cuotascredito->punitorios->ListViewValue() ?></span>
<input type="hidden" data-field="x_punitorios" name="x<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" id="x<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" value="<?php echo ew_HtmlEncode($cuotascredito->punitorios->FormValue) ?>">
<input type="hidden" data-field="x_punitorios" name="o<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" id="o<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" value="<?php echo ew_HtmlEncode($cuotascredito->punitorios->OldValue) ?>">
<?php } ?>
</td>
	<?php } ?>
	<?php if ($cuotascredito->vencimiento->Visible) { // vencimiento ?>
		<td<?php echo $cuotascredito->vencimiento->CellAttributes() ?>>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_ADD) { // Add record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_vencimiento" class="control-group cuotascredito_vencimiento">
<input type="text" data-field="x_vencimiento" name="x<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" id="x<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" placeholder="<?php echo ew_HtmlEncode($cuotascredito->vencimiento->PlaceHolder) ?>" value="<?php echo $cuotascredito->vencimiento->EditValue ?>"<?php echo $cuotascredito->vencimiento->EditAttributes() ?>>
</span>
<input type="hidden" data-field="x_vencimiento" name="o<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" id="o<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" value="<?php echo ew_HtmlEncode($cuotascredito->vencimiento->OldValue) ?>">
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_EDIT) { // Edit record ?>
<span id="el<?php echo $cuotascredito_grid->RowCnt ?>_cuotascredito_vencimiento" class="control-group cuotascredito_vencimiento">
<input type="text" data-field="x_vencimiento" name="x<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" id="x<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" placeholder="<?php echo ew_HtmlEncode($cuotascredito->vencimiento->PlaceHolder) ?>" value="<?php echo $cuotascredito->vencimiento->EditValue ?>"<?php echo $cuotascredito->vencimiento->EditAttributes() ?>>
</span>
<?php } ?>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_VIEW) { // View record ?>
<span<?php echo $cuotascredito->vencimiento->ViewAttributes() ?>>
<?php echo $cuotascredito->vencimiento->ListViewValue() ?></span>
<input type="hidden" data-field="x_vencimiento" name="x<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" id="x<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" value="<?php echo ew_HtmlEncode($cuotascredito->vencimiento->FormValue) ?>">
<input type="hidden" data-field="x_vencimiento" name="o<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" id="o<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" value="<?php echo ew_HtmlEncode($cuotascredito->vencimiento->OldValue) ?>">
<?php } ?>
</td>
	<?php } ?>
<?php

// Render list options (body, right)
$cuotascredito_grid->ListOptions->Render("body", "right", $cuotascredito_grid->RowCnt);
?>
	</tr>
<?php if ($cuotascredito->RowType == EW_ROWTYPE_ADD || $cuotascredito->RowType == EW_ROWTYPE_EDIT) { ?>
<script type="text/javascript">
fcuotascreditogrid.UpdateOpts(<?php echo $cuotascredito_grid->RowIndex ?>);
</script>
<?php } ?>
<?php
	}
	} // End delete row checking
	if ($cuotascredito->CurrentAction <> "gridadd" || $cuotascredito->CurrentMode == "copy")
		if (!$cuotascredito_grid->Recordset->EOF) $cuotascredito_grid->Recordset->MoveNext();
}
?>
<?php
	if ($cuotascredito->CurrentMode == "add" || $cuotascredito->CurrentMode == "copy" || $cuotascredito->CurrentMode == "edit") {
		$cuotascredito_grid->RowIndex = '$rowindex$';
		$cuotascredito_grid->LoadDefaultValues();

		// Set row properties
		$cuotascredito->ResetAttrs();
		$cuotascredito->RowAttrs = array_merge($cuotascredito->RowAttrs, array('data-rowindex'=>$cuotascredito_grid->RowIndex, 'id'=>'r0_cuotascredito', 'data-rowtype'=>EW_ROWTYPE_ADD));
		ew_AppendClass($cuotascredito->RowAttrs["class"], "ewTemplate");
		$cuotascredito->RowType = EW_ROWTYPE_ADD;

		// Render row
		$cuotascredito_grid->RenderRow();

		// Render list options
		$cuotascredito_grid->RenderListOptions();
		$cuotascredito_grid->StartRowCnt = 0;
?>
	<tr<?php echo $cuotascredito->RowAttributes() ?>>
<?php

// Render list options (body, left)
$cuotascredito_grid->ListOptions->Render("body", "left", $cuotascredito_grid->RowIndex);
?>
	<?php if ($cuotascredito->Id->Visible) { // Id ?>
		<td>
<?php if ($cuotascredito->CurrentAction <> "F") { ?>
<?php } else { ?>
<span id="el$rowindex$_cuotascredito_Id" class="control-group cuotascredito_Id">
<span<?php echo $cuotascredito->Id->ViewAttributes() ?>>
<?php echo $cuotascredito->Id->ViewValue ?></span>
</span>
<input type="hidden" data-field="x_Id" name="x<?php echo $cuotascredito_grid->RowIndex ?>_Id" id="x<?php echo $cuotascredito_grid->RowIndex ?>_Id" value="<?php echo ew_HtmlEncode($cuotascredito->Id->FormValue) ?>">
<?php } ?>
<input type="hidden" data-field="x_Id" name="o<?php echo $cuotascredito_grid->RowIndex ?>_Id" id="o<?php echo $cuotascredito_grid->RowIndex ?>_Id" value="<?php echo ew_HtmlEncode($cuotascredito->Id->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($cuotascredito->creditoId->Visible) { // creditoId ?>
		<td>
<?php if ($cuotascredito->CurrentAction <> "F") { ?>
<?php if ($cuotascredito->creditoId->getSessionValue() <> "") { ?>
<span<?php echo $cuotascredito->creditoId->ViewAttributes() ?>>
<?php echo $cuotascredito->creditoId->ListViewValue() ?></span>
<input type="hidden" id="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" name="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" value="<?php echo ew_HtmlEncode($cuotascredito->creditoId->CurrentValue) ?>">
<?php } else { ?>
<input type="text" data-field="x_creditoId" name="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" id="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->creditoId->PlaceHolder) ?>" value="<?php echo $cuotascredito->creditoId->EditValue ?>"<?php echo $cuotascredito->creditoId->EditAttributes() ?>>
<?php } ?>
<?php } else { ?>
<span<?php echo $cuotascredito->creditoId->ViewAttributes() ?>>
<?php echo $cuotascredito->creditoId->ViewValue ?></span>
<input type="hidden" data-field="x_creditoId" name="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" id="x<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" value="<?php echo ew_HtmlEncode($cuotascredito->creditoId->FormValue) ?>">
<?php } ?>
<input type="hidden" data-field="x_creditoId" name="o<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" id="o<?php echo $cuotascredito_grid->RowIndex ?>_creditoId" value="<?php echo ew_HtmlEncode($cuotascredito->creditoId->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($cuotascredito->cuota->Visible) { // cuota ?>
		<td>
<?php if ($cuotascredito->CurrentAction <> "F") { ?>
<span id="el$rowindex$_cuotascredito_cuota" class="control-group cuotascredito_cuota">
<input type="text" data-field="x_cuota" name="x<?php echo $cuotascredito_grid->RowIndex ?>_cuota" id="x<?php echo $cuotascredito_grid->RowIndex ?>_cuota" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->cuota->PlaceHolder) ?>" value="<?php echo $cuotascredito->cuota->EditValue ?>"<?php echo $cuotascredito->cuota->EditAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_cuotascredito_cuota" class="control-group cuotascredito_cuota">
<span<?php echo $cuotascredito->cuota->ViewAttributes() ?>>
<?php echo $cuotascredito->cuota->ViewValue ?></span>
</span>
<input type="hidden" data-field="x_cuota" name="x<?php echo $cuotascredito_grid->RowIndex ?>_cuota" id="x<?php echo $cuotascredito_grid->RowIndex ?>_cuota" value="<?php echo ew_HtmlEncode($cuotascredito->cuota->FormValue) ?>">
<?php } ?>
<input type="hidden" data-field="x_cuota" name="o<?php echo $cuotascredito_grid->RowIndex ?>_cuota" id="o<?php echo $cuotascredito_grid->RowIndex ?>_cuota" value="<?php echo ew_HtmlEncode($cuotascredito->cuota->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($cuotascredito->capital->Visible) { // capital ?>
		<td>
<?php if ($cuotascredito->CurrentAction <> "F") { ?>
<span id="el$rowindex$_cuotascredito_capital" class="control-group cuotascredito_capital">
<input type="text" data-field="x_capital" name="x<?php echo $cuotascredito_grid->RowIndex ?>_capital" id="x<?php echo $cuotascredito_grid->RowIndex ?>_capital" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->capital->PlaceHolder) ?>" value="<?php echo $cuotascredito->capital->EditValue ?>"<?php echo $cuotascredito->capital->EditAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_cuotascredito_capital" class="control-group cuotascredito_capital">
<span<?php echo $cuotascredito->capital->ViewAttributes() ?>>
<?php echo $cuotascredito->capital->ViewValue ?></span>
</span>
<input type="hidden" data-field="x_capital" name="x<?php echo $cuotascredito_grid->RowIndex ?>_capital" id="x<?php echo $cuotascredito_grid->RowIndex ?>_capital" value="<?php echo ew_HtmlEncode($cuotascredito->capital->FormValue) ?>">
<?php } ?>
<input type="hidden" data-field="x_capital" name="o<?php echo $cuotascredito_grid->RowIndex ?>_capital" id="o<?php echo $cuotascredito_grid->RowIndex ?>_capital" value="<?php echo ew_HtmlEncode($cuotascredito->capital->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($cuotascredito->intereses->Visible) { // intereses ?>
		<td>
<?php if ($cuotascredito->CurrentAction <> "F") { ?>
<span id="el$rowindex$_cuotascredito_intereses" class="control-group cuotascredito_intereses">
<input type="text" data-field="x_intereses" name="x<?php echo $cuotascredito_grid->RowIndex ?>_intereses" id="x<?php echo $cuotascredito_grid->RowIndex ?>_intereses" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->intereses->PlaceHolder) ?>" value="<?php echo $cuotascredito->intereses->EditValue ?>"<?php echo $cuotascredito->intereses->EditAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_cuotascredito_intereses" class="control-group cuotascredito_intereses">
<span<?php echo $cuotascredito->intereses->ViewAttributes() ?>>
<?php echo $cuotascredito->intereses->ViewValue ?></span>
</span>
<input type="hidden" data-field="x_intereses" name="x<?php echo $cuotascredito_grid->RowIndex ?>_intereses" id="x<?php echo $cuotascredito_grid->RowIndex ?>_intereses" value="<?php echo ew_HtmlEncode($cuotascredito->intereses->FormValue) ?>">
<?php } ?>
<input type="hidden" data-field="x_intereses" name="o<?php echo $cuotascredito_grid->RowIndex ?>_intereses" id="o<?php echo $cuotascredito_grid->RowIndex ?>_intereses" value="<?php echo ew_HtmlEncode($cuotascredito->intereses->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($cuotascredito->tasa->Visible) { // tasa ?>
		<td>
<?php if ($cuotascredito->CurrentAction <> "F") { ?>
<span id="el$rowindex$_cuotascredito_tasa" class="control-group cuotascredito_tasa">
<input type="text" data-field="x_tasa" name="x<?php echo $cuotascredito_grid->RowIndex ?>_tasa" id="x<?php echo $cuotascredito_grid->RowIndex ?>_tasa" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->tasa->PlaceHolder) ?>" value="<?php echo $cuotascredito->tasa->EditValue ?>"<?php echo $cuotascredito->tasa->EditAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_cuotascredito_tasa" class="control-group cuotascredito_tasa">
<span<?php echo $cuotascredito->tasa->ViewAttributes() ?>>
<?php echo $cuotascredito->tasa->ViewValue ?></span>
</span>
<input type="hidden" data-field="x_tasa" name="x<?php echo $cuotascredito_grid->RowIndex ?>_tasa" id="x<?php echo $cuotascredito_grid->RowIndex ?>_tasa" value="<?php echo ew_HtmlEncode($cuotascredito->tasa->FormValue) ?>">
<?php } ?>
<input type="hidden" data-field="x_tasa" name="o<?php echo $cuotascredito_grid->RowIndex ?>_tasa" id="o<?php echo $cuotascredito_grid->RowIndex ?>_tasa" value="<?php echo ew_HtmlEncode($cuotascredito->tasa->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($cuotascredito->estado->Visible) { // estado ?>
		<td>
<?php if ($cuotascredito->CurrentAction <> "F") { ?>
<span id="el$rowindex$_cuotascredito_estado" class="control-group cuotascredito_estado">
<input type="text" data-field="x_estado" name="x<?php echo $cuotascredito_grid->RowIndex ?>_estado" id="x<?php echo $cuotascredito_grid->RowIndex ?>_estado" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->estado->PlaceHolder) ?>" value="<?php echo $cuotascredito->estado->EditValue ?>"<?php echo $cuotascredito->estado->EditAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_cuotascredito_estado" class="control-group cuotascredito_estado">
<span<?php echo $cuotascredito->estado->ViewAttributes() ?>>
<?php echo $cuotascredito->estado->ViewValue ?></span>
</span>
<input type="hidden" data-field="x_estado" name="x<?php echo $cuotascredito_grid->RowIndex ?>_estado" id="x<?php echo $cuotascredito_grid->RowIndex ?>_estado" value="<?php echo ew_HtmlEncode($cuotascredito->estado->FormValue) ?>">
<?php } ?>
<input type="hidden" data-field="x_estado" name="o<?php echo $cuotascredito_grid->RowIndex ?>_estado" id="o<?php echo $cuotascredito_grid->RowIndex ?>_estado" value="<?php echo ew_HtmlEncode($cuotascredito->estado->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($cuotascredito->saldo->Visible) { // saldo ?>
		<td>
<?php if ($cuotascredito->CurrentAction <> "F") { ?>
<span id="el$rowindex$_cuotascredito_saldo" class="control-group cuotascredito_saldo">
<input type="text" data-field="x_saldo" name="x<?php echo $cuotascredito_grid->RowIndex ?>_saldo" id="x<?php echo $cuotascredito_grid->RowIndex ?>_saldo" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->saldo->PlaceHolder) ?>" value="<?php echo $cuotascredito->saldo->EditValue ?>"<?php echo $cuotascredito->saldo->EditAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_cuotascredito_saldo" class="control-group cuotascredito_saldo">
<span<?php echo $cuotascredito->saldo->ViewAttributes() ?>>
<?php echo $cuotascredito->saldo->ViewValue ?></span>
</span>
<input type="hidden" data-field="x_saldo" name="x<?php echo $cuotascredito_grid->RowIndex ?>_saldo" id="x<?php echo $cuotascredito_grid->RowIndex ?>_saldo" value="<?php echo ew_HtmlEncode($cuotascredito->saldo->FormValue) ?>">
<?php } ?>
<input type="hidden" data-field="x_saldo" name="o<?php echo $cuotascredito_grid->RowIndex ?>_saldo" id="o<?php echo $cuotascredito_grid->RowIndex ?>_saldo" value="<?php echo ew_HtmlEncode($cuotascredito->saldo->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($cuotascredito->punitorios->Visible) { // punitorios ?>
		<td>
<?php if ($cuotascredito->CurrentAction <> "F") { ?>
<span id="el$rowindex$_cuotascredito_punitorios" class="control-group cuotascredito_punitorios">
<input type="text" data-field="x_punitorios" name="x<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" id="x<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" size="30" placeholder="<?php echo ew_HtmlEncode($cuotascredito->punitorios->PlaceHolder) ?>" value="<?php echo $cuotascredito->punitorios->EditValue ?>"<?php echo $cuotascredito->punitorios->EditAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_cuotascredito_punitorios" class="control-group cuotascredito_punitorios">
<span<?php echo $cuotascredito->punitorios->ViewAttributes() ?>>
<?php echo $cuotascredito->punitorios->ViewValue ?></span>
</span>
<input type="hidden" data-field="x_punitorios" name="x<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" id="x<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" value="<?php echo ew_HtmlEncode($cuotascredito->punitorios->FormValue) ?>">
<?php } ?>
<input type="hidden" data-field="x_punitorios" name="o<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" id="o<?php echo $cuotascredito_grid->RowIndex ?>_punitorios" value="<?php echo ew_HtmlEncode($cuotascredito->punitorios->OldValue) ?>">
</td>
	<?php } ?>
	<?php if ($cuotascredito->vencimiento->Visible) { // vencimiento ?>
		<td>
<?php if ($cuotascredito->CurrentAction <> "F") { ?>
<span id="el$rowindex$_cuotascredito_vencimiento" class="control-group cuotascredito_vencimiento">
<input type="text" data-field="x_vencimiento" name="x<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" id="x<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" placeholder="<?php echo ew_HtmlEncode($cuotascredito->vencimiento->PlaceHolder) ?>" value="<?php echo $cuotascredito->vencimiento->EditValue ?>"<?php echo $cuotascredito->vencimiento->EditAttributes() ?>>
</span>
<?php } else { ?>
<span id="el$rowindex$_cuotascredito_vencimiento" class="control-group cuotascredito_vencimiento">
<span<?php echo $cuotascredito->vencimiento->ViewAttributes() ?>>
<?php echo $cuotascredito->vencimiento->ViewValue ?></span>
</span>
<input type="hidden" data-field="x_vencimiento" name="x<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" id="x<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" value="<?php echo ew_HtmlEncode($cuotascredito->vencimiento->FormValue) ?>">
<?php } ?>
<input type="hidden" data-field="x_vencimiento" name="o<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" id="o<?php echo $cuotascredito_grid->RowIndex ?>_vencimiento" value="<?php echo ew_HtmlEncode($cuotascredito->vencimiento->OldValue) ?>">
</td>
	<?php } ?>
<?php

// Render list options (body, right)
$cuotascredito_grid->ListOptions->Render("body", "right", $cuotascredito_grid->RowCnt);
?>
<script type="text/javascript">
fcuotascreditogrid.UpdateOpts(<?php echo $cuotascredito_grid->RowIndex ?>);
</script>
	</tr>
<?php
}
?>
</tbody>
</table>
<?php if ($cuotascredito->CurrentMode == "add" || $cuotascredito->CurrentMode == "copy") { ?>
<input type="hidden" name="a_list" id="a_list" value="gridinsert">
<input type="hidden" name="<?php echo $cuotascredito_grid->FormKeyCountName ?>" id="<?php echo $cuotascredito_grid->FormKeyCountName ?>" value="<?php echo $cuotascredito_grid->KeyCount ?>">
<?php echo $cuotascredito_grid->MultiSelectKey ?>
<?php } ?>
<?php if ($cuotascredito->CurrentMode == "edit") { ?>
<input type="hidden" name="a_list" id="a_list" value="gridupdate">
<input type="hidden" name="<?php echo $cuotascredito_grid->FormKeyCountName ?>" id="<?php echo $cuotascredito_grid->FormKeyCountName ?>" value="<?php echo $cuotascredito_grid->KeyCount ?>">
<?php echo $cuotascredito_grid->MultiSelectKey ?>
<?php } ?>
<?php if ($cuotascredito->CurrentMode == "") { ?>
<input type="hidden" name="a_list" id="a_list" value="">
<?php } ?>
<input type="hidden" name="detailpage" value="fcuotascreditogrid">
</div>
<?php

// Close recordset
if ($cuotascredito_grid->Recordset)
	$cuotascredito_grid->Recordset->Close();
?>
<?php if ($cuotascredito_grid->ShowOtherOptions) { ?>
<div class="ewGridLowerPanel ewListOtherOptions">
<?php
	foreach ($cuotascredito_grid->OtherOptions as &$option)
		$option->Render("body", "bottom");
?>
</div>
<?php } ?>
</div>
</td></tr></table>
<?php if ($cuotascredito->Export == "") { ?>
<script type="text/javascript">
fcuotascreditogrid.Init();
<?php if (EW_MOBILE_REFLOW && ew_IsMobile()) { ?>
ew_Reflow();
<?php } ?>
</script>
<?php } ?>
<?php
$cuotascredito_grid->ShowPageFooter();
if (EW_DEBUG_ENABLED)
	echo ew_DebugMsg();
?>
<?php
$cuotascredito_grid->Page_Terminate();
?>
